open class Foo {
  @Deprecated
  function bar() = 40

  @Deprecated { message="Use only Foo#qux" }
  function baz() = "baz"

  function qux() = 0
}

class Bar extends Foo {
  function bar() = super.bar() + 2
  function baz() = super.baz() + " was called"
  function qux() = super.qux() - 1
}

barCall = new Bar {}.bar()
bazCall = new Bar {}.baz()
quxCall = new Bar {}.qux()

barCall2ShouldNotWarn = new Bar {}.bar()
bazCall2ShouldNotWarn = new Bar {}.baz()
